

var targetWindow = null;
var tabCount = 0;
var newtabid=0;
var runcount=0;

var xhr = new XMLHttpRequest();
chrome.extension.onRequest.addListener(
  function(request, sender, sendResponse) {
    //console.log(sender.tab ? "from a content script:" + sender.tab.url :"from the extension");
    if (request.action ==''){
		
//
		

	} 
	if (request.action =='newtab'){
		
		
	}
	if(request.action =='count'){
		runcount++;
		if(runcount>100){
			runcount=0;
			newtab();
		}
	}
	

      
    else
      sendResponse({}); // snub them.
  });


